import Cart from '@/views/home/cart.vue'
import Cla from '@/views/home/cla.vue'
import Home from '@/views/home/home.vue'
import Index from '@/views/home/index.vue'
import My from '@/views/home/my.vue'
import { createRouter, createWebHistory } from 'vue-router'


const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {path: '/home',name: 'home',component: Home,
      children:[
        {path: 'cart',name: 'cart',component: Cart,},
        {path: 'cla',name: 'cla',component: Cla,},
        {path: 'index',name: 'index',component: Index,},
        {path: 'my',name: 'my',component: My,},
      ]
    },
    
  ],
})

export default router
